import request from '@/utils/request'

// 新增年度单品消耗
export const addYearlyProductConsumptionApi = (data) => {
  return request({
    url: '/ecm-microservice-biz/ecm/year/product/consumption/add',
    method: 'post',
    data
  })
}

// 查询年度曲线信息
export const getYearlyProductConsumptionLineApi = (params) => {
  return request({
    url: '/ecm-microservice-biz/ecm/year/product/consumption/line',
    method: 'get',
    params
  })
}

// 查询年度列表信息
export const getYearlyProductConsumptionListApi = (params) => {
  return request({
    url: '/ecm-microservice-biz/ecm/year/product/consumption/list',
    method: 'get',
    params
  })
}
